Skip to content

Conversation

@dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Nov 27, 2025

@dvdksn dvdksn added the status/do-not-merge Pull requests that are awaiting some event or decision before they can be merged. label Nov 27, 2025
@github-actions github-actions bot added area/build Relates to Dockerfiles or docker build command area/tests labels Nov 27, 2025
@netlify
Copy link

netlify bot commented Nov 27, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit c7656bd
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6978def18c07100007a9f88e
😎 Deploy Preview https://deploy-preview-23782--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn dvdksn force-pushed the build-input-policy branch from 640026d to b152a76 Compare January 16, 2026 13:38
@github-actions github-actions bot added the area/cli Relates to the CLI client label Jan 16, 2026
@dvdksn dvdksn force-pushed the build-input-policy branch 2 times, most recently from 1dcccf6 to 7741d9b Compare January 20, 2026 14:57
@dvdksn dvdksn requested a review from tonistiigi January 20, 2026 14:59
@dvdksn dvdksn marked this pull request as ready for review January 20, 2026 14:59
@dvdksn dvdksn force-pushed the build-input-policy branch 2 times, most recently from 9ef9e13 to 04835cd Compare January 20, 2026 15:22
@dvdksn dvdksn changed the title [WIP] build: rego source policies build: rego source policies Jan 20, 2026
@dvdksn dvdksn force-pushed the build-input-policy branch from 04835cd to 92feb6f Compare January 20, 2026 15:34
```

When using Sigstore signatures, additional fields are available under
`input.image.signature` (singular) with details about the signing workflow.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uuh I reckon this was a result of me starting to preemptively doc some fields before I was able to test. Then Claude went and mangled things.

}
```

#### `input.git.commitChecksum`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also checksum isAnnotatedTag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding these and a couple other fields I noticed were missing. Not adding fullUrl and isSha256 just yet - I noticed they exist but I'm not really able to test those.

@dvdksn dvdksn force-pushed the build-input-policy branch from 92feb6f to 2040f30 Compare January 21, 2026 08:45
@dvdksn dvdksn force-pushed the build-input-policy branch from 2040f30 to d94ec3e Compare January 26, 2026 13:14
@github-actions github-actions bot added dependencies Vendoring, packaging updates area/config labels Jan 26, 2026
@dvdksn dvdksn removed status/do-not-merge Pull requests that are awaiting some event or decision before they can be merged. dependencies Vendoring, packaging updates area/config labels Jan 26, 2026
@dvdksn dvdksn requested a review from a team January 26, 2026 13:14
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
@dvdksn dvdksn force-pushed the build-input-policy branch from d94ec3e to d803575 Compare January 27, 2026 14:25
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
@dvdksn dvdksn force-pushed the build-input-policy branch from d803575 to c7656bd Compare January 27, 2026 15:51
@@ -0,0 +1,585 @@
---
title: Example policies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might give this a stronger left nav name, nothing too intense. I would clarify the kind of examples these are, e.g.: "Example policies for beginners" (that's a bad title). Maybe something that indicates who these examples are for, or maybe the environment"Example policies for <development/production>" or something. IDK just adding a little more context to target the exact audience who the examples are for

@@ -0,0 +1,210 @@
---
title: Test build policies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want the doc title to match left nav title for breadcrumbing/context?


## Basic example

Start with a simple policy:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, "start with a simple policy that :" just to provide context scaffolding

test_alpine_allowed: PASS (allow=true)
test_ubuntu_denied: PASS (allow=false)
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add a short sentence summary that calls out specifically what should happen if the test passes?

└── src/
```

No additional configuration is needed - buildx automatically finds and loads
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use Buildx with an uppercase B when referring to the CLI tool/client and not the CLI command? I've seen this in a couple of place in the PR. Can we update this?

$ docker buildx policy test --filename app.Dockerfile .
```

This loads `app.Dockerfile.rego` and runs `*_test.rego` files against it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. What is the expected outcome? A short sentence might help wrap up what to expect

@usha-mandya
Copy link
Member

Left some minor comments @dvdksn. Looks great overall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Relates to Dockerfiles or docker build command area/cli Relates to the CLI client area/tests status/review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants